<template>
  <div>
    <son v-for="(item,id) in arr" :key="id" :info="item"></son>
  </div>
</template>

<script>
import son from '@/components/son.vue';
export default {
    components: { son},
    data() {
        return {
            arr: [],
        };
    },
    async created() {
        var result = await this.$http({
            url: "/api/getHaoKanVideo",
            params: {
                page: 0,
                size: 10,
            },
        });
        console.log(result.data.result.list, "result");
        this.arr = result.data.result.list;
    },
    methods: {
        goDetail(id) {
            console.log(id);
            this.$router.push("/detail?id=" + id);
        },
    },
    
};
</script>

<style lang="scss" scoped>

</style>